<?php
require_once 'Entry.php';

class Feed
{
    public $title;
    public $link;
    public $description;
    public $entries;

    public function __tostring()
    {
        $result = 'Title: ' . $this->title . '<br/>Description: ' . $this->description . '<br/>Link: ' . $this->link . '<br/>';
        if ($this->entries != null)
            foreach ($this->entries as $entry)
            {
                $result .= (string)$entry;
            }
        return $result;
    }
}

